

package com.jc.platform.lixinping.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.jc.platform.lixinping.vo.PartnerVO;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jc.platform.lixinping.entity.PartnerEntity;
import org.apache.ibatis.annotations.*;
import org.mapstruct.MappingTarget;

/**
 * ClassName PartnerMapper.java
 * Description 合作单位
 *
 * @author 集团管理员
 * @date 2022/01/22
 */
@Mapper
public interface IPartnerMapper extends BaseMapper<PartnerEntity>
{



    IPage<PartnerVO> findExtends(IPage<PartnerVO> page, @Param(Constants.WRAPPER) QueryWrapper<PartnerVO> queryWrapper);
    List<PartnerVO> findExtend(@Param(Constants.WRAPPER) QueryWrapper<PartnerVO> queryWrapper);

    List<PartnerEntity> findByPurchaseContract(Long contractId);


    List<PartnerEntity> findBySalesContract(Long contractId);

}




